package cmd

import (
	"fmt"

	"github.com/spf13/cobra"
)

var target string

var monitorCmd = &cobra.Command{
	Use:                   "monitor [target]",
	Short:                 "Monitor the rabbitmq broker status",
	Args:                  cobra.ExactArgs(1),
	DisableFlagsInUseLine: true,
	Run: func(cmd *cobra.Command, args []string) {
		target = args[0]
		fmt.Println("Start to monitor target: " + target)
	},
}
